/*
 * XML Type:  InvestmentPosition
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InvestmentPosition
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04;


/**
 * An XML InvestmentPosition(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public interface InvestmentPosition extends org.apache.xmlbeans.XmlObject
{
    public static final org.apache.xmlbeans.SchemaType type = (org.apache.xmlbeans.SchemaType)schema.system.s3A74FF4CC3627C5B0D40068015746F8A.TypeSystemHolder.typeSystem.resolveHandle("investmentposition5286type");
    
    /**
     * Gets the "SECID" element
     */
    net.ofx.types.x2003.x04.SecurityId getSECID();
    
    /**
     * Sets the "SECID" element
     */
    void setSECID(net.ofx.types.x2003.x04.SecurityId secid);
    
    /**
     * Appends and returns a new empty "SECID" element
     */
    net.ofx.types.x2003.x04.SecurityId addNewSECID();
    
    /**
     * Gets the "HELDINACCT" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum.Enum getHELDINACCT();
    
    /**
     * Gets (as xml) the "HELDINACCT" element
     */
    net.ofx.types.x2003.x04.SubAccountEnum xgetHELDINACCT();
    
    /**
     * Sets the "HELDINACCT" element
     */
    void setHELDINACCT(net.ofx.types.x2003.x04.SubAccountEnum.Enum heldinacct);
    
    /**
     * Sets (as xml) the "HELDINACCT" element
     */
    void xsetHELDINACCT(net.ofx.types.x2003.x04.SubAccountEnum heldinacct);
    
    /**
     * Gets the "POSTYPE" element
     */
    net.ofx.types.x2003.x04.PositionTypeEnum.Enum getPOSTYPE();
    
    /**
     * Gets (as xml) the "POSTYPE" element
     */
    net.ofx.types.x2003.x04.PositionTypeEnum xgetPOSTYPE();
    
    /**
     * Sets the "POSTYPE" element
     */
    void setPOSTYPE(net.ofx.types.x2003.x04.PositionTypeEnum.Enum postype);
    
    /**
     * Sets (as xml) the "POSTYPE" element
     */
    void xsetPOSTYPE(net.ofx.types.x2003.x04.PositionTypeEnum postype);
    
    /**
     * Gets the "UNITS" element
     */
    java.lang.String getUNITS();
    
    /**
     * Gets (as xml) the "UNITS" element
     */
    net.ofx.types.x2003.x04.QuantityType xgetUNITS();
    
    /**
     * Sets the "UNITS" element
     */
    void setUNITS(java.lang.String units);
    
    /**
     * Sets (as xml) the "UNITS" element
     */
    void xsetUNITS(net.ofx.types.x2003.x04.QuantityType units);
    
    /**
     * Gets the "UNITPRICE" element
     */
    java.lang.String getUNITPRICE();
    
    /**
     * Gets (as xml) the "UNITPRICE" element
     */
    net.ofx.types.x2003.x04.UnitPriceType xgetUNITPRICE();
    
    /**
     * Sets the "UNITPRICE" element
     */
    void setUNITPRICE(java.lang.String unitprice);
    
    /**
     * Sets (as xml) the "UNITPRICE" element
     */
    void xsetUNITPRICE(net.ofx.types.x2003.x04.UnitPriceType unitprice);
    
    /**
     * Gets the "MKTVAL" element
     */
    java.lang.String getMKTVAL();
    
    /**
     * Gets (as xml) the "MKTVAL" element
     */
    net.ofx.types.x2003.x04.AmountType xgetMKTVAL();
    
    /**
     * Sets the "MKTVAL" element
     */
    void setMKTVAL(java.lang.String mktval);
    
    /**
     * Sets (as xml) the "MKTVAL" element
     */
    void xsetMKTVAL(net.ofx.types.x2003.x04.AmountType mktval);
    
    /**
     * Gets the "DTPRICEASOF" element
     */
    java.lang.String getDTPRICEASOF();
    
    /**
     * Gets (as xml) the "DTPRICEASOF" element
     */
    net.ofx.types.x2003.x04.DateTimeType xgetDTPRICEASOF();
    
    /**
     * Sets the "DTPRICEASOF" element
     */
    void setDTPRICEASOF(java.lang.String dtpriceasof);
    
    /**
     * Sets (as xml) the "DTPRICEASOF" element
     */
    void xsetDTPRICEASOF(net.ofx.types.x2003.x04.DateTimeType dtpriceasof);
    
    /**
     * Gets the "CURRENCY" element
     */
    net.ofx.types.x2003.x04.Currency getCURRENCY();
    
    /**
     * True if has "CURRENCY" element
     */
    boolean isSetCURRENCY();
    
    /**
     * Sets the "CURRENCY" element
     */
    void setCURRENCY(net.ofx.types.x2003.x04.Currency currency);
    
    /**
     * Appends and returns a new empty "CURRENCY" element
     */
    net.ofx.types.x2003.x04.Currency addNewCURRENCY();
    
    /**
     * Unsets the "CURRENCY" element
     */
    void unsetCURRENCY();
    
    /**
     * Gets the "MEMO" element
     */
    java.lang.String getMEMO();
    
    /**
     * Gets (as xml) the "MEMO" element
     */
    net.ofx.types.x2003.x04.MessageType xgetMEMO();
    
    /**
     * True if has "MEMO" element
     */
    boolean isSetMEMO();
    
    /**
     * Sets the "MEMO" element
     */
    void setMEMO(java.lang.String memo);
    
    /**
     * Sets (as xml) the "MEMO" element
     */
    void xsetMEMO(net.ofx.types.x2003.x04.MessageType memo);
    
    /**
     * Unsets the "MEMO" element
     */
    void unsetMEMO();
    
    /**
     * Gets the "INV401KSOURCE" element
     */
    net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum getINV401KSOURCE();
    
    /**
     * Gets (as xml) the "INV401KSOURCE" element
     */
    net.ofx.types.x2003.x04.Investment401KSourceEnum xgetINV401KSOURCE();
    
    /**
     * True if has "INV401KSOURCE" element
     */
    boolean isSetINV401KSOURCE();
    
    /**
     * Sets the "INV401KSOURCE" element
     */
    void setINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum.Enum inv401KSOURCE);
    
    /**
     * Sets (as xml) the "INV401KSOURCE" element
     */
    void xsetINV401KSOURCE(net.ofx.types.x2003.x04.Investment401KSourceEnum inv401KSOURCE);
    
    /**
     * Unsets the "INV401KSOURCE" element
     */
    void unsetINV401KSOURCE();
    
    /**
     * A factory class with static methods for creating instances
     * of this type.
     */
    
    public static final class Factory
    {
        public static net.ofx.types.x2003.x04.InvestmentPosition newInstance() {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition newInstance(org.apache.xmlbeans.XmlOptions options) {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newInstance( type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(java.lang.String s) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(java.lang.String s, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( s, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(java.io.File f) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(java.io.File f, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( f, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(java.net.URL u) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(java.net.URL u, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( u, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(java.io.InputStream is) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(java.io.InputStream is, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( is, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(java.io.Reader r) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(java.io.Reader r, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( r, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(org.w3c.dom.Node node) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(org.w3c.dom.Node node, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( node, type, options ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, null ); }
        
        public static net.ofx.types.x2003.x04.InvestmentPosition parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return (net.ofx.types.x2003.x04.InvestmentPosition) org.apache.xmlbeans.XmlBeans.getContextTypeLoader().parse( xis, type, options ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, null ); }
        
        public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException {
          return org.apache.xmlbeans.XmlBeans.getContextTypeLoader().newValidatingXMLInputStream( xis, type, options ); }
        
        private Factory() { } // No instance of this class allowed
    }
}
